package com.pti.usermanager.service.api;

import com.pti.usermanager.web.dto.request.SaveOrgRequest;
import com.pti.usermanager.web.dto.request.UpdateOrgRequest;
import com.pti.usermanager.web.dto.response.ResultResponse;

/**
 * @ClassName: OrgService
 * @Author: mahuilin
 * @Description: 组织业务层
 * @Date: 2019/2/20
 */
public interface OrgService {
    /**
     * create by: mahuilin
     * description:组织详情接口
     * create time: 17:16 2019/2/20
     *
     * @Param: usrId
     * @return com.pti.usermanager.web.dto.response.ResultResponse
     */
    ResultResponse findTreeByOrg(Long usrId,Long compId);
    /**
     * create by: mahuilin
     * description:添加组织接口
     * create time: 17:21 2019/2/21
     *
     * @Param: saveOrgRequest
     * @return com.pti.usermanager.web.dto.response.ResultResponse
     */
    ResultResponse saveOrg (SaveOrgRequest saveOrgRequest);
    /**
     * create by: mahuilin
     * description:删除组织接口
     * create time: 17:21 2019/2/21
     *
     * @Param: delOrg
     * @return com.pti.usermanager.web.dto.response.ResultResponse
     */
    ResultResponse delOrg(Long orgId);
    /**
     * create by: mahuilin
     * description:修改组织接口
     * create time: 17:21 2019/2/21
     *
     * @Param: updateOrgRequest
     * @return com.pti.usermanager.web.dto.response.ResultResponse
     */
    ResultResponse updateOrg (UpdateOrgRequest updateOrgRequest);
}
